#include "terrain.h"


//--------------------------------------------------------------------------------------
// 

Terrain::Terrain()
:m_TileSizeX(0)
{
	m_pTerrainGird = new TerrainGrid();
}

Terrain::~Terrain()
{
}

bool Terrain::SetTerrainSize(int iTile)
{
	m_TileSizeX = iTile;
	if (m_pTerrainGird != 0)
	{
		return m_pTerrainGird->SetSize(iTile+1);
	}

	return false;
}

bool Terrain::Render()
{
	if (m_pTerrainGird != 0)
	{
		return m_pTerrainGird->Render();
	}
	return false;
}